package com.anxin.controller;

import com.anxin.pojo.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author anxinr
 */
@Api(tags = "测试接口")
@Slf4j
@RestController
@RequestMapping("/test")
public class TestController {

    @ApiOperation(value = "测试get接口")
    @GetMapping("/hhh")
    public Object testGet(){
        return "嗨嗨害" ;
    }

    @ApiOperation(value = "测试get接口")
    @PostMapping("/kkk")
    public Object testPost(@ApiParam(value = "用户信息")User user){
        return "嗨嗨害" ;
    }


}
